package com.dfba.Homework3;

public class NewPhone extends OldPhone implements Play{
    private String name="新手机";
    @Override
    public void playGame() {
        System.out.println(this.name+"玩游戏");//重写抽象类玩游戏
    }


    public void call() {
        System.out.println(this.name+"在打电话");
    }

    public void sendMessage() {
        System.out.println(this.name+"在发短信");
    }
}
